﻿@model IEnumerable<QuaLuuNiem.Models.MENURIGHT>

@{
    ViewBag.Title = "danh_sach_menu";
    Layout = "~/Views/Shared/_layoutDangnhap.cshtml";
}
<div class="center_center">
<div class="center_danhsach">
<h2>Danh sách các menu hiển thị bên phải</h2>

<p>
    @Html.ActionLink("Thêm menu", "ThemMenu")
</p>
<table  border="1" cellpadding="0" cellspacing="0"  style="margin:0 auto">
    <tr>
        <th>
            Mã Menu
        </th>
        <th>
            Tên menu
        </th>
        <th>Thao tác</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.MaMenu)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TenMenu)
        </td>
        <td>
            @Html.ActionLink("Edit", "CapNhatMenu", new { id=item.MaMenu })  | 
            @Html.ActionLink("Delete", "XoaMenu", new { id=item.MaMenu }) 
        </td>
    </tr>
}

</table>
</div>
</div>